<%@ page import="com.site.service.ConfigService,com.site.entity.ConfigEntity" %>
<%@ page import="java.util.List" %>
<%@ page import="com.site.entity.*" %>
<%@ page import="com.site.service.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    ConfigEntity headerEntity = new ConfigService().getSiteConfig();
    List<HeaderEntity> listheader=new HeaderService().getAll();
    List<HeadOtherEntity> otherlist=new HeadOtherService().getAll();
%>

<html>
<head>
</head>
<body>
<!-- 顶部欢迎 -->
<div class="title">
    <div class="centerbar">
        <!-- 列表项目 -->
        <span>
<%--            欢迎来到本网站！--%>
            <%=headerEntity.getRemark()%>
        </span>

        <a href="javascript:;" class="touch">
            <img src=
                 <%--                                                          "Images/Index/title-QQ.png" --%>
                     <%=headerEntity.getQQlogo()%>
                         alt="">
        </a>
        <a href="javascript:;" class="touch">
            <img src=
                 <%--                                                          "Images/Index/title-wechat.png" --%>
                     <%=headerEntity.getWechatlogo()%>
                         alt="">
        </a>
        <%
            for(HeadOtherEntity e:otherlist){
        %>
        <a href="<%=e.getSource()%>">
<%--            移动端开发--%>
            <%=e.getTitle()%>
        </a>
        <%
            }
        %>
    </div>
</div>

<div class="logo">
    <a href="index.jsp">
        <img src=
             <%--                     "Images/Index/logo.png" --%>
                 <%=headerEntity.getLogo()%>
                     alt="Logo">
    </a>

    <div>
        咨询电话：<span><%=headerEntity.getPhone()%></span>
    </div>
</div>
<!-- 导航标题-->
<div class="header">
    <div>
        <ul>
            <%
                for(HeaderEntity e:listheader){
            %>
            <li><a href="<%=e.getSource()%>">
<%--                首页--%>
                <%=e.getTitle()%>
            </a></li>
            <%
                }
            %>
        </ul>
    </div>
</div>
</body>
</html>
